<?php
    while($p=mfa($provinces)){
        $p_html.="<option value='$p[0]'>$p[0]</option>";
    }
    for($i=2000;$i>1975;$i--){
        $y_html.="<option value='$i'>$i</option>";
    }
    for($i=1;$i<=12;$i++){
        $m_html.="<option value='".($i<10?"0":"")."$i'>".($i<10?"0":"")."$i</option>";
    }
?>
<center>
    <br>
    <img src='v/m/images/match_reg_2.png' width='272'><br>
    <br>
    <form id='frm' action="?_c=match&_f=reg3&id=<?php echo($match[id]) ?>" method='post'>
        <table>
            <tr><td width='50px'><nobr>参赛宣言：</nobr></td><td style="padding:10px"><input name='tWord' maxlength="15" onchange='matchCheckField("Word");'></td><td><img id='iWord' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
            <tr><td>姓名：</td><td style="padding:10px"><input name='tName' maxlength="10" onchange='matchCheckField("Name");'></td><td><img id='iName' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
            <tr><td>性别：</td><td style="padding:10px"><select name='tSex' style='width:100%' onchange='matchCheckField("Sex");'><option value='女'>女</option><option value='男'>男</option></select></td><td><img id='iSex' width='25' src='v/m/images/match_reg_2_y.png'></td></tr>
            <tr><td>地区：</td><td style="padding:10px"><select name='tProvince' style='width:50%' onchange='matchChangeProvince(this.value);'><option>省份</option><?php echo($p_html) ?></select><select name='tCity' style='width:50%' onchange='matchCheckField("City");'><option>城市</option></select></td><td><img id='iCity' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
            <tr><td>生日：</td><td style="padding:10px"><select name='tYear' style='width:50%' onchange='matchCheckField("Month");'><option>年</option><?php echo($y_html) ?></select><select name='tMonth' style='width:50%' onchange='matchCheckField("Month");'><option>月</option><?php echo($m_html) ?></select></td><td><img id='iMonth' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
            <tr><td>职业：</td><td style="padding:10px"><input name='tJob' maxlength="10" onchange='matchCheckField("Job");'></td><td><img id='iJob' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
            <tr><td>手机：</td><td style="padding:10px"><input name='tMobile' maxlength="11" onchange='matchCheckField("Mobile");' onkeyup="value=value.replace(/[^\d]/g,'');matchCheckField('Mobile');"></td><td><img id='iMobile' width='25' src='v/m/images/match_reg_2_n.png'></td></tr>
        </table>
    </form>
    <br>
    <a href="?_c=match&_f=reg&id=<?php echo($match[id]) ?>"><img src='v/m/images/match_reg_1_e.jpg' width='213'></a>
    &nbsp;&nbsp;
    <a href="#" onclick='if(matchSubmitFields()){ eid("frm").submit(); }return false;'><img src='v/m/images/match_reg_1_d.jpg' width='213'></a><br>
    <br>
    <br>
</center>